import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'ion:document-text-outline',
      order: 999,
      title: $t('routes.log.log'),
    },

    name: 'log',
    path: '/log',
    children: [
      {
        name: 'log',
        path: '/log/list',
        component: () => import('#/views/log/index.vue'),
        meta: {
          icon: 'lucide:list',
          title: $t('routes.log.logList'),
          affixTabOrder: 99,
        },
      },
    ],
  },
];

export default routes;
